package com.youyi.yyviewsdklibrary.Dialog.util;

import com.yanzhenjie.permission.runtime.Permission;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

public final class PermissionConstants {
    private static final String[] GROUP_STORAGE = {Permission.READ_EXTERNAL_STORAGE, Permission.WRITE_EXTERNAL_STORAGE};
    public static final String STORAGE = "STORAGE";

    @Retention(RetentionPolicy.SOURCE)
    public @interface PermissionGroup {
    }

    public static String[] getPermissions(String str) {
        if (str == null) {
            return new String[0];
        }
        str.hashCode();
        if (str.equals(STORAGE)) {
            return GROUP_STORAGE;
        }
        return new String[]{str};
    }
}
